package com.soft2018;

public class Main {

    public static void main(String[] args) {
	// write your code here
        //创建类对象
        Monster m1 = new Monster();
        //赋值
        m1.setM_name("白骨精");
        System.out.println("我们创建的第一只怪物："+m1.getM_name());

        Monster m2 = new Monster();
        m2.setM_name("牛魔王");
        System.out.println("我们创建的第二只怪物："+m2.getM_name());

        Monster m3 = new Monster("红孩儿",1000,50);
        System.out.println("我们创建的第三只怪物："+m3.getM_name()
        +", 血量 = "+m3.getM_hp()+", 攻击="+ m3.getM_ap());

        m2.setM_ap(1000);
        m2.setM_hp(100000);
        m2.print();
        m1.print();

        Player p1 = new Player("张三丰",100,5);

        p1.killMonster(m2);

        m2.print();

        m2.attPlayer(p1);
        p1.print();

        Skill sk1 = new Skill(10,"天地变色，狂风大作，刺骨冰冷，感觉生命都被吸走一般!","北冥大法");
        Player p2 = new Player("北冥星君",100,5,sk1);
        p2.print();
        p2.skm(m2);
        m2.print();
    }
}
